<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j">

<ui:composition>
	<h:form>
		<h:panelGrid columns="2" width="100%" columnClasses="tpanels,tpanels">
            <rich:simpleTogglePanel switchType="client" label="#{resourceApp.crmtf_principal_panel_saldos}" width="800px" height="120px">
                    <h:panelGrid columns="4" cellpadding="0" cellspacing="0" width="100%">
	                    <h:outputLabel value="#{resourceApp.crmtf_principal_saldo}" />
						<h:outputText value="#{crmtfVisualizarPrincipalBean.crmtf.mtfsal}" styleClass="textoSombreado" >
							<f:convertNumber currencySymbol="$" maxFractionDigits="2" type="currency"/>
						</h:outputText>
						 <h:outputLabel value="#{resourceApp.crmtf_principal_deudores}" />
						<h:outputText value="#{crmtfVisualizarPrincipalBean.crmtf.mtfdeu}" >
							<f:convertNumber currencySymbol="$" maxFractionDigits="2" type="currency"/>
						</h:outputText>
						 <h:outputLabel value="#{resourceApp.crmtf_principal_prestamos}" />
						<h:outputText value="#{crmtfVisualizarPrincipalBean.crmtf.mtfptm}" >
							<f:convertNumber currencySymbol="$" maxFractionDigits="2" type="currency"/>
						</h:outputText>
						<h:outputLabel value="#{resourceApp.crmtf_principal_ventas_mes}" />
						<h:outputText value="#{crmtfVisualizarPrincipalBean.crmtf.mtfvem}" >
							<f:convertNumber currencySymbol="$" maxFractionDigits="2" type="currency"/>
						</h:outputText>
						<h:outputLabel value="#{resourceApp.crmtf_principal_sda}" />
						<h:outputText value="#{crmtfVisualizarPrincipalBean.crmtf.mtfa70}" >
							<f:convertNumber currencySymbol="$" maxFractionDigits="2" type="currency"/>
						</h:outputText>
						<h:outputLabel value="#{resourceApp.crmtf_principal_avance_mes}" />
						<h:outputText value="#{crmtfVisualizarPrincipalBean.crmtf.mtfavm}" >
							<f:convertNumber currencySymbol="$" maxFractionDigits="2" type="currency"/>
						</h:outputText>
						<h:outputLabel value="#{resourceApp.crmtf_principal_sdv}" />
						<h:outputText value="#{crmtfVisualizarPrincipalBean.crmtf.mtfc70}" >
							<f:convertNumber currencySymbol="$" maxFractionDigits="2" type="currency"/>
						</h:outputText>
						<h:outputLabel value="#{resourceApp.crmtf_principal_pago_mes}" />
						<h:outputText value="#{crmtfVisualizarPrincipalBean.crmtf.mtfpgm}" >
							<f:convertNumber currencySymbol="$" maxFractionDigits="2" type="currency"/>
						</h:outputText>
						<h:outputLabel value="#{resourceApp.crmtf_principal_sod}" />
						<h:outputText value="#{crmtfVisualizarPrincipalBean.crmtf.mtf017}" >
							<f:convertNumber currencySymbol="$" maxFractionDigits="2" type="currency"/>
						</h:outputText>
						<h:outputLabel value="#{resourceApp.crmtf_principal_ajuste_debito_mes}" />
						<h:outputText value="#{crmtfVisualizarPrincipalBean.crmtf.mtfjdm}" >
							<f:convertNumber currencySymbol="$" maxFractionDigits="2" type="currency"/>
						</h:outputText>
						<h:outputLabel value="#{resourceApp.crmtf_principal_svm}" />
						<h:outputText value="#{crmtfVisualizarPrincipalBean.crmtf.mtfven}" >
							<f:convertNumber currencySymbol="$" maxFractionDigits="2" type="currency"/>
						</h:outputText>
						<h:outputLabel value="#{resourceApp.crmtf_principal_ajuste_credito_mes}" />
						<h:outputText value="#{crmtfVisualizarPrincipalBean.crmtf.mtfjcm}" >
							<f:convertNumber currencySymbol="$" maxFractionDigits="2" type="currency"/>
						</h:outputText>
						<h:outputLabel value="#{resourceApp.crmtf_principal_sam}" />
						<h:outputText value="#{crmtfVisualizarPrincipalBean.crmtf.mtfava}" >
							<f:convertNumber currencySymbol="$" maxFractionDigits="2" type="currency"/>
						</h:outputText>
						<h:outputText value="#{resourceApp.crmtf_principal_mm}     #{crmtfVisualizarPrincipalBean.crmtf.mtfmmp}" />
						<h:outputText value="#{resourceApp.crmtf_principal_ms}     #{crmtfVisualizarPrincipalBean.crmtf.mtfmsp}" />
					</h:panelGrid>
            </rich:simpleTogglePanel>
            <rich:simpleTogglePanel switchType="client" label="#{resourceApp.crmtf_principal_panel_cupo}" width="400px" height="120px">
                       <h:panelGrid columns="2" cellpadding="0" cellspacing="0" width="100%">
		                   	<h:outputLabel value="#{resourceApp.crmtf_principal_total_interes}" />
							<h:outputText value="#{crmtfVisualizarPrincipalBean.crmtf.mtfpen + crmtfVisualizarPrincipalBean.crmtf.mtfipc}">
								<f:convertNumber currencySymbol="$" maxFractionDigits="2" type="currency"/>
							</h:outputText>
							<h:outputLabel value="#{resourceApp.crmtf_principal_interes_provisional}" />
							<h:outputText value="#{crmtfVisualizarPrincipalBean.crmtf.mtfipr}" >
								<f:convertNumber currencySymbol="$" maxFractionDigits="2" type="currency"/>
							</h:outputText>
							<h:outputLabel value="#{resourceApp.crmtf_principal_saldo_anterior}" />
							<h:outputText value="#{crmtfVisualizarPrincipalBean.crmtf.mtfsda}">
								<f:convertNumber currencySymbol="$" maxFractionDigits="2" type="currency"/>
							</h:outputText>
							<h:outputText value="#{resourceApp.crmtf_principal_cupo}" />
							<h:outputText value="#{crmtfVisualizarPrincipalBean.crmtf.mtflpe}">
								<f:convertNumber currencySymbol="$" maxFractionDigits="2" type="currency"/>
							</h:outputText>
						</h:panelGrid>
			</rich:simpleTogglePanel>
       	</h:panelGrid>
       <h:panelGrid columns="2" width="100%" columnClasses="tpanels,tpanels">
           <rich:simpleTogglePanel switchType="client" label="#{resourceApp.crmtf_principal_panel_informe_estadistico}" width="800px" height="150px">
           	<rich:dataTable id="idTablaMeses" value="#{crmtfVisualizarPrincipalBean.crestLista}" var="meses" dir="LTR" headerClass="columnaEstados">
	           	<rich:column>
	           		<f:facet name="header">
	                        <h:outputText value="" />
	                </f:facet>
	            </rich:column>
	           	<rich:columns value="#{crmtfVisualizarPrincipalBean.crestDTOLista}" var="mes">
	           		<f:facet name="header">
	                        <h:outputText value="#{mes.mes}" />
	                </f:facet>
	            </rich:columns>
	        </rich:dataTable>
	        <rich:dataTable id="idTablaEstados" value="#{crmtfVisualizarPrincipalBean.crestLista}" var="bloqueos" dir="LTR" headerClass="columnaEstados">
	           	<rich:column>
	           		<f:facet name="header">
	                        <h:outputText value="#{resourceApp.crmtf_principal_bl}" />
	                </f:facet>
	            </rich:column>
	           	<rich:columns value="#{crmtfVisualizarPrincipalBean.crestDTOLista}" var="blq">
	           		<f:facet name="header">
	                        <h:outputText value="#{blq.estadoBloqueo}" />
	                </f:facet>
	            </rich:columns>   
	        </rich:dataTable>
	        <rich:dataTable id="idTablaEdadMora" value="#{crmtfVisualizarPrincipalBean.crestLista}" var="edadMora" dir="LTR" headerClass="columnaEstados">
	           	<rich:column>
	           		<f:facet name="header">
	                        <h:outputText value="#{resourceApp.crmtf_principal_em}" />
	                </f:facet>
	            </rich:column>
	           	<rich:columns value="#{crmtfVisualizarPrincipalBean.crestDTOLista}" var="mora">
	           		<f:facet name="header">
	                        <h:outputText value="#{mora.edadMora}" />
	                </f:facet>
	            </rich:columns>   
	        </rich:dataTable>
           	
           	<h:panelGrid columns="4" cellpadding="0" cellspacing="0" width="100%">
                  	<h:outputLabel value="#{resourceApp.crmtf_principal_pago_minimo_mes_anterior}" />
				<h:outputText value="#{crmtfVisualizarPrincipalBean.crmtf.mtfpmn}">
					<f:convertNumber currencySymbol="$" maxFractionDigits="2" type="currency"/>
				</h:outputText>
				<h:outputLabel value="#{resourceApp.crmtf_principal_fecha_expedicion}" />
				<h:outputText value="#{crmtfVisualizarPrincipalBean.crmtf.mtffex}" >
					
				</h:outputText>
				<h:outputLabel value="#{resourceApp.crmtf_principal_ventas_mes_anterior}" />
				<h:outputText value="#{crmtfVisualizarPrincipalBean.crmtf.mtfvma}">
					<f:convertNumber currencySymbol="$" maxFractionDigits="2" type="currency"/>
				</h:outputText>
				<h:outputText value="#{resourceApp.crmtf_principal_fecha_cuota}" />
				<h:outputText value="#{crmtfVisualizarPrincipalBean.crmtf.mtffcu}">
					
				</h:outputText>
				<h:outputLabel value="#{resourceApp.crmtf_principal_avance_mes_anterior}" />
				<h:outputText value="#{crmtfVisualizarPrincipalBean.crmtf.mtfama}">
					<f:convertNumber currencySymbol="$" maxFractionDigits="2" type="currency"/>
				</h:outputText>
				<h:outputLabel value="#{resourceApp.crmtf_principal_fdr}" />
				<h:outputText value="#{crmtfVisualizarPrincipalBean.crmtf.mtffdr}">
					<f:convertNumber currencySymbol="$" maxFractionDigits="2" type="currency"/>
				</h:outputText>
				<h:outputLabel value="#{resourceApp.crmtf_principal_pago_mes_anterior}" />
				<h:outputText value="#{crmtfVisualizarPrincipalBean.crmtf.mtfpma}">
					<f:convertNumber currencySymbol="$" maxFractionDigits="2" type="currency"/>
				</h:outputText>
				<h:outputText value="#{resourceApp.crmtf_principal_fecha_vencimiento}" />
				<h:outputText value="#{crmtfVisualizarPrincipalBean.crmtf.mtffve}">
					
				</h:outputText>
				<h:outputText value="#{resourceApp.crmtf_principal_ultimo_pago}" />
				<h:outputText value="#{crmtfVisualizarPrincipalBean.crmtf.mtffup}">
					
				</h:outputText>
			</h:panelGrid>
			
           </rich:simpleTogglePanel>
           <rich:simpleTogglePanel switchType="client" label="#{resourceApp.crmtf_principal_panel_pago_minimo}" width="400px" height="150px">
           	<h:panelGrid columns="2" cellpadding="0" cellspacing="0" width="100%">
           	<h:outputLabel value="#{resourceApp.crmtf_principal_interes_mora}" />
			<h:outputText value="#{crmtfVisualizarPrincipalBean.crmtf.mtfimo}">
				<f:convertNumber currencySymbol="$" maxFractionDigits="2" type="currency"/>
			</h:outputText>
			<h:outputLabel value="#{resourceApp.crmtf_principal_interes_corrientes}" />
			<h:outputText value="#{crmtfVisualizarPrincipalBean.crmtf.mtfico}">
				<f:convertNumber currencySymbol="$" maxFractionDigits="2" type="currency"/>
			</h:outputText>
			<h:outputLabel value="#{resourceApp.crmtf_principal_interes_contables}" />
			<h:outputText value="#{crmtfVisualizarPrincipalBean.crmtf.mtfipc}">
				<f:convertNumber currencySymbol="$" maxFractionDigits="2" type="currency"/>
			</h:outputText>
			<h:outputLabel value="#{resourceApp.crmtf_principal_cuota_manejo}" />
			<h:outputText value="#{crmtfVisualizarPrincipalBean.crmtf.mtfvcu}">
				<f:convertNumber currencySymbol="$" maxFractionDigits="2" type="currency"/>
			</h:outputText>
			<h:outputLabel value="#{resourceApp.crmtf_principal_valor_moras}" />
			<h:outputText value="#{crmtfVisualizarPrincipalBean.crmtf.mtfmor}">
				<f:convertNumber currencySymbol="$" maxFractionDigits="2" type="currency"/>
			</h:outputText>
			<h:outputLabel value="#{resourceApp.crmtf_principal_diferido_avances}" />
			<h:outputText value="#{crmtfVisualizarPrincipalBean.crmtf.mtfa30}">
				<f:convertNumber currencySymbol="$" maxFractionDigits="2" type="currency"/>
			</h:outputText>
			<h:outputLabel value="#{resourceApp.crmtf_principal_diferido_ventas}" />
			<h:outputText value="#{crmtfVisualizarPrincipalBean.crmtf.mtfc30}">
				<f:convertNumber currencySymbol="$" maxFractionDigits="2" type="currency"/>
			</h:outputText>
			<h:outputLabel value="#{resourceApp.crmtf_principal_diferido_ajustes}" />
			<h:outputText value="#{crmtfVisualizarPrincipalBean.crmtf.mtf013}">
				<f:convertNumber currencySymbol="$" maxFractionDigits="2" type="currency"/>
			</h:outputText>
			<h:outputLabel value="#{resourceApp.crmtf_principal_no_diferido}" />
			<h:outputText value="#{crmtfVisualizarPrincipalBean.crmtf.mtfndi}">
				<f:convertNumber currencySymbol="$" maxFractionDigits="2" type="currency"/>
			</h:outputText>
			<h:outputLabel value="#{resourceApp.crmtf_principal_pago_minimo}" />
			<h:outputText value="#{crmtfVisualizarPrincipalBean.crmtf.mtfimo + crmtfVisualizarPrincipalBean.crmtf.mtfico + 
				crmtfVisualizarPrincipalBean.crmtf.mtfipc + crmtfVisualizarPrincipalBean.crmtf.mtfvcu + 
				crmtfVisualizarPrincipalBean.crmtf.mtfmor + crmtfVisualizarPrincipalBean.crmtf.mtfa30 + 
				crmtfVisualizarPrincipalBean.crmtf.mtfc30 + crmtfVisualizarPrincipalBean.crmtf.mtf013 +
				crmtfVisualizarPrincipalBean.crmtf.mtfndi}" styleClass="textoParpadeante">
				<f:convertNumber currencySymbol="$" maxFractionDigits="2" type="currency"/>
			</h:outputText>
		</h:panelGrid>	
           </rich:simpleTogglePanel>
        </h:panelGrid>  
	</h:form>
</ui:composition>
</html>
